/**
 ********************************************************************
 * @author roocket
 * @file    client.c
 * @version V0.0.0
 * @date    2024/3/22
 * @brief   This file is to indicate client functions. 
 * @attention Code file rules:
 * rule: file encoding use UTF8;
 * rule: max line length 120 characters;
 * rule: line separator \r\n;
 * rule: use clion auto code format tool.
 */

#include "client.h"

int client_init_socket(const char *address, const unsigned short port)
{
   return socket_client_init(address, port); 
}

int client_get_data(int fd, void *user)
{
    return socket_get_data(fd, user);
}

int client_set_data(int fd, void *sent, int length)
{
    return socket_set_data(fd, sent, length);
}

void client_del_socket(int fd)
{
    return socket_del(fd);
}
